import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home-page',
      component: require('@/components/HomePage').default
    },
    {
      path: '/file-manager',
      name: 'file-manager',
      component: require('@/components/FileManager').default
    },
    {
      path: '/file-search-in-folder',
      name: 'file-search-in-folder',
      component: require('@/components/SearchInFolder').default
    },
    {
      path: '/tool-box',
      name: 'tool-box',
      component: require('@/components/ToolBox').default
    },
    {
      path: '/tool-row-to-col',
      name: 'tool-row-to-col',
      component: require('@/components/tools/RowToCol').default
    },
    {
      path: '/batch-replace',
      name: 'batch-replace',
      component: require('@/components/tools/BatchReplace').default
    },
    {
      path: '/let-right-compare',
      name: 'let-right-compare',
      component: require('@/components/tools/LeftAndRightCompare').default
    },
    {
      path: '/string-trim',
      name: 'string-trim',
      component: require('@/components/tools/StringTrim').default
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
